package com.phone.client.poji.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TbOrder {
  @TableId(value = "id", type = IdType.AUTO)
  private long id;
  private long clientId;
  private long carId;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date startTime;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date endTime;
  private long brrowShop;
  private long returnShop;
  private double totalPrice;
  private double preparidAmount;
  private long state;
  private String isGetCarAtHome;
  private String getCarLocation;
  private String isReturnCarAtHome;
  private String returnCarLocation;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date addtime;
  private String orderNo;

  @TableField(exist = false)
  private String brrowshopname;

  @TableField(exist = false)
  private String returnshopname;
  @TableField(exist = false)
  private TbCar tbCar;
  @TableField(exist = false)
  private TbCarType carType;
  @TableField(exist = false)
  private TbCarTypeConfigDetails configName;
  @TableField(exist = false)
  private String payType;
}
